package net.guerlab.sdk.anubis.request;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.guerlab.sdk.anubis.AnubisConstants;
import net.guerlab.sdk.anubis.response.ChainStoreQueryResponse;

/**
 * 门店查询请求
 * 
 * @author guer
 *
 */
public class ChainStoreQueryRequest extends AbstractBusinessRequest<ChainStoreQueryResponse> {

    /**
     * 门店编号列表
     */
    private List<String> chainStoreCodes;

    /**
     * 门店名称列表
     */
    private List<String> chainStoreNames;

    @Override
    protected void createRequestUri(
            StringBuilder builder) {
        builder.append(AnubisConstants.URL_CHAIN_STORE_QUERY);
    }

    @Override
    protected Object getReuqestData() {
        Map<String, List<String>> data = new HashMap<>(2);

        data.put("chain_store_name", chainStoreNames);
        data.put("chain_store_code", chainStoreCodes);

        return data;
    }

    /**
     * 返回 门店编号列表
     *
     * @return 门店编号列表
     */
    public List<String> getChainStoreCodes() {
        return chainStoreCodes;
    }

    /**
     * 设置门店编号列表
     *
     * @param chainStoreCodes
     *            门店编号列表
     */
    public void setChainStoreCodes(
            List<String> chainStoreCodes) {
        this.chainStoreCodes = chainStoreCodes;
    }

    /**
     * 返回 门店名称列表
     *
     * @return 门店名称列表
     */
    public List<String> getChainStoreNames() {
        return chainStoreNames;
    }

    /**
     * 设置门店名称列表
     *
     * @param chainStoreNames
     *            门店名称列表
     */
    public void setChainStoreNames(
            List<String> chainStoreNames) {
        this.chainStoreNames = chainStoreNames;
    }

}
